package com.testdemo.web.controller;

import com.testdemo.web.service.MyUserService;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import org.springframework.web.servlet.ModelAndView;



/**
 * 主界面.
 * @author SuperT
 *
 */
@Controller
public class AuthenticateMyUserController {

     /**
	 * 用户服务.
	 */
	@Resource
	private MyUserService userService;

	/**
	 * 系统首页.
	 * 教学内容：get 方式返回页面
	 * @return 返回系统首页
	 */
	@RequestMapping(value = "/", method = RequestMethod.GET)
	public ModelAndView getIndex() {
		ModelAndView mav = new ModelAndView("index");
		return mav;
	}

}